package com.xuetang9.t9.xinhuaxia.mappers;

import com.xuetang9.t9.xinhuaxia.beans.Chat;
import org.apache.ibatis.annotations.*;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ChatMapper extends Mapper<Chat> {

    @Select("select * from chat where p_chatid=#{chatid}")
    @Results({
            @Result(column="p_chatid",property="pChatid"),
            @Result(column="p_content",property="pContent"),
    })
    List<Chat>queryAllbyPchatid(@Param("chatid") Integer chatid);
}